import request from '@/utils/request';
import { stringify } from 'qs';

//获取图片验证码
export async function getCaptchaImage() {
    return request(`/blade-auth/oauth/captcha`);
}

//支付宝实名验证
export async function authentication(params) {
    return request(`/blade-user/alipaycertification/addOrUp`, {
        method: 'Post',
        data: params
    });
}

//获取用户信息
export async function getMessage(params) {
    return request(`/zjf-oms/user/detail?${stringify(params)}`);
}